<template>
  <a-form ref="formRef" :model="form" :rules="rules" layout="vertical">
    <a-row :gutter="20">
      <a-col :span="6">
        <a-form-item name="sampleId">
          <template #label>
            <span>
              样品号
              <a-tooltip v-if="false">
                <template #title></template>
                <QuestionCircleOutlined />
              </a-tooltip>
              <span>：</span>
            </span>
          </template>
          <a-input v-model:value="form.sampleId" allow-clear placeholder="请输入样品号" />           
        </a-form-item>
      </a-col>
      <a-col :span="6">
        <a-form-item name="matName">
          <template #label>
            <span>
              样品名称
              <a-tooltip v-if="false">
                <template #title></template>
                <QuestionCircleOutlined />
              </a-tooltip>
              <span>：</span>
            </span>
          </template>
          <a-input v-model:value="form.matName" allow-clear placeholder="请输入样品名称" />           
        </a-form-item>
      </a-col>
      <a-col :span="6">
        <a-form-item name="mt">
          <template #label>
            <span>
              全水分(Mt)
              <a-tooltip v-if="false">
                <template #title></template>
                <QuestionCircleOutlined />
              </a-tooltip>
              <span>：</span>
            </span>
          </template>
          <a-input v-model:value="form.mt" allow-clear placeholder="请输入全水分(Mt)" />           
        </a-form-item>
      </a-col>
      <a-col :span="6">
        <a-form-item name="ad">
          <template #label>
            <span>
              干基灰分(Ad)
              <a-tooltip v-if="false">
                <template #title></template>
                <QuestionCircleOutlined />
              </a-tooltip>
              <span>：</span>
            </span>
          </template>
          <a-input v-model:value="form.ad" allow-clear placeholder="请输入干基灰分(Ad)" />           
        </a-form-item>
      </a-col>
      <a-col :span="6">
        <a-form-item name="vd">
          <template #label>
            <span>
              干基挥发分(Vd)
              <a-tooltip v-if="false">
                <template #title></template>
                <QuestionCircleOutlined />
              </a-tooltip>
              <span>：</span>
            </span>
          </template>
          <a-input v-model:value="form.vd" allow-clear placeholder="请输入干基挥发分(Vd)" />           
        </a-form-item>
      </a-col>
      <a-col :span="6">
        <a-form-item name="mad">
          <template #label>
            <span>
              空干基水分(Mad)
              <a-tooltip v-if="false">
                <template #title></template>
                <QuestionCircleOutlined />
              </a-tooltip>
              <span>：</span>
            </span>
          </template>
          <a-input v-model:value="form.mad" allow-clear placeholder="请输入空干基水分(Mad)" />           
        </a-form-item>
      </a-col>
      <a-col :span="6">
        <a-form-item name="qnetar">
          <template #label>
            <span>
              收到基低位热值(Qnet,ar)
              <a-tooltip v-if="false">
                <template #title></template>
                <QuestionCircleOutlined />
              </a-tooltip>
              <span>：</span>
            </span>
          </template>
          <a-input v-model:value="form.qnetar" allow-clear placeholder="请输入收到基低位热值(Qnet,ar)" />           
        </a-form-item>
      </a-col>
      <a-col :span="6">
        <a-form-item name="std">
          <template #label>
            <span>
              干基全硫(St,d)
              <a-tooltip v-if="false">
                <template #title></template>
                <QuestionCircleOutlined />
              </a-tooltip>
              <span>：</span>
            </span>
          </template>
          <a-input v-model:value="form.std" allow-clear placeholder="请输入干基全硫(St,d)" />           
        </a-form-item>
      </a-col>
      <a-col :span="6">
        <a-form-item name="hgi">
          <template #label>
            <span>
              哈式可磨性指数
              <a-tooltip v-if="false">
                <template #title></template>
                <QuestionCircleOutlined />
              </a-tooltip>
              <span>：</span>
            </span>
          </template>
          <a-input v-model:value="form.hgi" allow-clear placeholder="请输入哈式可磨性指数" />           
        </a-form-item>
      </a-col>
      <a-col :span="6">
        <a-form-item name="cri">
          <template #label>
            <span>
              焦渣特性
              <a-tooltip v-if="false">
                <template #title></template>
                <QuestionCircleOutlined />
              </a-tooltip>
              <span>：</span>
            </span>
          </template>
          <a-input v-model:value="form.cri" allow-clear placeholder="请输入焦渣特性" />           
        </a-form-item>
      </a-col>
      <a-col :span="6">
        <a-form-item name="ci">
          <template #label>
            <span>
              粘接指数
              <a-tooltip v-if="false">
                <template #title></template>
                <QuestionCircleOutlined />
              </a-tooltip>
              <span>：</span>
            </span>
          </template>
          <a-input v-model:value="form.ci" allow-clear placeholder="请输入粘接指数" />           
        </a-form-item>
      </a-col>
      <a-col :span="6">
        <a-form-item name="car">
          <template #label>
            <span>
              碳含量(Car)
              <a-tooltip v-if="false">
                <template #title></template>
                <QuestionCircleOutlined />
              </a-tooltip>
              <span>：</span>
            </span>
          </template>
          <a-input v-model:value="form.car" allow-clear placeholder="请输入碳含量(Car)" />           
        </a-form-item>
      </a-col>
      <a-col :span="6">
        <a-form-item name="had">
          <template #label>
            <span>
              氢含量(Had)
              <a-tooltip v-if="false">
                <template #title></template>
                <QuestionCircleOutlined />
              </a-tooltip>
              <span>：</span>
            </span>
          </template>
          <a-input v-model:value="form.had" allow-clear placeholder="请输入氢含量(Had)" />           
        </a-form-item>
      </a-col>
      <a-col :span="6">
        <a-form-item name="qgrd">
          <template #label>
            <span>
              高位发热量(Qgr,d)
              <a-tooltip v-if="false">
                <template #title></template>
                <QuestionCircleOutlined />
              </a-tooltip>
              <span>：</span>
            </span>
          </template>
          <a-input v-model:value="form.qgrd" allow-clear placeholder="请输入高位发热量(Qgr,d)" />           
        </a-form-item>
      </a-col>
      <a-col :span="6">
        <a-form-item name="commissionTime">
          <template #label>
            <span>
              检测日期
              <a-tooltip v-if="false">
                <template #title></template>
                <QuestionCircleOutlined />
              </a-tooltip>
              <span>：</span>
            </span>
          </template>
          <a-date-picker v-model:value="form.commissionTime" value-format="YYYY-MM-DD" placeholder="请选择检测日期" style="width: 100%" />
        </a-form-item>
      </a-col>
    </a-row>


  </a-form>
</template>

<script setup name="LabMainInfoRlmForm">
import { reactive, ref } from 'vue';


const props = defineProps({
  // 表单数据
  form: Object
});

// 验证规则
const rules = reactive({
  sampleId: [{ required: true,  message: '请输入样品号', type: 'string', trigger: 'blur' }],
  matName: [{ required: true,  message: '请输入样品名称', type: 'string', trigger: 'blur' }],
  commissionTime: [{ required: true,  message: '请输入检测日期', type: 'string', trigger: 'blur' }],
});



defineExpose({
})
</script>

<style></style>
